<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AddUsers.aspx.cs" Inherits="AddUsers" title="Project Monitoring System" culture="Auto:en-US" uiculture="auto" meta:resourcekey="PageResource1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server" Visible="false">
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <div style="margin-left:10px;margin-right:10px;">
        <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" BackColor="#FFFBD6" BorderColor="#FFDFAD" meta:resourcekey="CreateUserWizard1"
            BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.9em"
            Height="93px" OnCreatedUser="CreateUserWizard1_CreatedUser" Width="327px" OnCreatingUser="CreateUserWizard1_CreatedUser"
            OnFinishButtonClick="Wizard_FinishButton_Click" ContinueDestinationPageUrl="~/Reminder.aspx">
            <WizardSteps>
                <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server" meta:resourcekey="CreateUserWizardStep1Resource1">
                    <ContentTemplate>
                        <table border="0" style="font-size: 100%; width: 400px; font-family: Verdana; height: 93px;
                            background-color: #fffbd6">
                            <tr>
                                <td align="center" colspan="2" style="font-weight: bold; font-size: 10pt; color: white;
                                    background-color:darkblue">
                                    <asp:Label ID="lblSignUp" runat="server"  meta:resourcekey="lblSignUp" Text="Sign Up For New Account"></asp:Label></td>
                            </tr>
                            <tr>
                                <td align="right" style="width:200px">
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" meta:resourcekey="UserNameLabelResource1" Text="User Name:" Font-Size="Small" Width="300px"></asp:Label></td>
                                <td style="width: 172px">
                                    <asp:TextBox ID="UserName" runat="server" meta:resourcekey="UserNameResource1"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                        ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="CreateUserWizard1" meta:resourcekey="UserNameRequiredResource1" Text="*"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width:200px">
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" meta:resourcekey="PasswordLabelResource1" Text="Password:" Font-Size="Small" Width="300px"></asp:Label></td>
                                <td style="width: 172px">
                                    <asp:TextBox ID="Password" runat="server" TextMode="Password" meta:resourcekey="PasswordResource1"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                        ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="CreateUserWizard1" meta:resourcekey="PasswordRequiredResource1" Text="*"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 200px">
                                    <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword" meta:resourcekey="ConfirmPasswordLabelResource1" Text="Confirm Password:" Font-Size="Small"></asp:Label></td>
                                <td style="width: 172px">
                                    <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password" meta:resourcekey="ConfirmPasswordResource1"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"
                                        ErrorMessage="Confirm Password is required." ToolTip="Confirm Password is required."
                                        ValidationGroup="CreateUserWizard1" meta:resourcekey="ConfirmPasswordRequiredResource1" Text="*"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width:200px">
                                    <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email" meta:resourcekey="EmailLabelResource1" Text="E-mail:" Font-Size="Small"></asp:Label></td>
                                <td style="width: 172px">
                                    <asp:TextBox ID="Email" runat="server" meta:resourcekey="EmailResource1"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                                        ErrorMessage="E-mail is required." ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1" meta:resourcekey="EmailRequiredResource1" Text="*"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width:200px">
                                    <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question" meta:resourcekey="QuestionLabelResource1" Text="Security Question:" Font-Size="Small"></asp:Label></td>
                                <td style="width: 172px">
                                    <asp:TextBox ID="Question" runat="server" meta:resourcekey="QuestionResource1"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" ControlToValidate="Question"
                                        ErrorMessage="Security question is required." ToolTip="Security question is required."
                                        ValidationGroup="CreateUserWizard1" meta:resourcekey="QuestionRequiredResource1" Text="*"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 200px">
                                    <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer" meta:resourcekey="AnswerLabelResource1" Text="Security Answer:" Font-Size="Small"></asp:Label></td>
                                <td style="width: 172px">
                                    <asp:TextBox ID="Answer" runat="server" meta:resourcekey="AnswerResource1"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" ControlToValidate="Answer"
                                        ErrorMessage="Security answer is required." ToolTip="Security answer is required."
                                        ValidationGroup="CreateUserWizard1" meta:resourcekey="AnswerRequiredResource1" Text="*"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                                        ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match."
                                        ValidationGroup="CreateUserWizard1" meta:resourcekey="PasswordCompareResource1" Font-Size="Small"></asp:CompareValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2" style="color: red">
                                    <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False" meta:resourcekey="ErrorMessageResource1"></asp:Literal>
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:CreateUserWizardStep>
                <asp:WizardStep ID="AddRole" runat="server" meta:resourcekey="AddRoleResource1">
                    <center style="text-align: left">
                        &nbsp;</center>
                    <center style="text-align: left">
                        <asp:Label ID="Label1" runat="server" meta:resourcekey="Label1Resource1" Text="Add the user to a group:"></asp:Label>
                        <asp:ObjectDataSource ID="ODSRoles" runat="server" OldValuesParameterFormatString="original_{0}"
                            SelectMethod="GetAllRoles" TypeName="System.Web.Security.Roles"></asp:ObjectDataSource>
                    </center>
                    <center style="text-align: left">
                        <asp:DropDownList ID="GroupName" runat="server" Width="150px" meta:resourcekey="GroupNameResource1" DataSourceID="ODSRoles">
                        </asp:DropDownList>
                    </center>
                    <center>
                        &nbsp;</center>
                    <center style="text-align: left">
                        <asp:Label ID="lblAlertAdvDay" runat="server" Text="Alert Advance Day" meta:resourcekey="lblAlertAdvDayResource1"></asp:Label>
                    </center>
                    <center style="text-align: left">
                        <asp:TextBox ID="txtAlertAdvDay" runat="server" MaxLength="3" Width="41px" meta:resourcekey="txtAlertAdvDayResource1"></asp:TextBox>
                        <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtAlertAdvDay"
                            Display="Dynamic" ErrorMessage="Please enter values from [1 - 999]" MaximumValue="999"
                            MinimumValue="1" meta:resourcekey="RangeValidator1Resource1"></asp:RangeValidator>
                    </center>
                    <center style="text-align: left">
                        <asp:CheckBox ID="chkSuperUser" runat="server" Height="12px" Text="Super User" Width="120px" meta:resourcekey="chkSuperUserResource1" />
                        </center>
                    <center style="text-align: left">
                        &nbsp;</center>
                    <center style="text-align: left">
                        &nbsp;</center>
                </asp:WizardStep>
                <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server" meta:resourcekey="CompleteWizardStep1Resource1">
                    <ContentTemplate>
                        <table border="0" style="font-size: 100%; width: 327px; font-family: Verdana; height: 93px;
                            background-color: #fffbd6">
                            <tr>
                                <td align="center" colspan="2" style="font-weight: bold; font-size: 10pt; color: white;
                                    background-color: darkblue">
                                    Complete</td>
                            </tr>
                            <tr>
                                <td>
                                    Your account has been successfully created.</td>
                            </tr>
                            <tr>
                                <td align="right" colspan="2">
                                    <asp:Button ID="ContinueButton" runat="server" BackColor="White" BorderColor="#CC9966"
                                        BorderStyle="Solid" BorderWidth="1px" CausesValidation="False" CommandName="Continue"
                                        Font-Names="Verdana" ForeColor="#990000" Text="Continue" ValidationGroup="CreateUserWizard1" meta:resourcekey="ContinueButtonResource1" />
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:CompleteWizardStep>
            </WizardSteps>
            <SideBarStyle BackColor="#990000" Font-Size="0.9em" VerticalAlign="Top" />
            <TitleTextStyle BackColor="DarkBlue" Font-Bold="True" ForeColor="White" Font-Size="10pt" />
            <SideBarButtonStyle ForeColor="White" />
            <NavigationButtonStyle BackColor="White" BorderColor="#CC9966" BorderStyle="Solid"
                BorderWidth="1px" Font-Names="Verdana" ForeColor="#990000" />
            <HeaderStyle CssClass="GridHeaderStyle" BackColor="#FFCC66" BorderColor="#FFFBD6" BorderStyle="Solid" BorderWidth="2px"
                Font-Bold="True" Font-Size="0.9em" ForeColor="#333333" HorizontalAlign="Center" />
            <CreateUserButtonStyle BackColor="White" BorderColor="#CC9966" BorderStyle="Solid"
                BorderWidth="1px" Font-Names="Verdana" ForeColor="#990000" />
            <ContinueButtonStyle BackColor="White" BorderColor="#CC9966" BorderStyle="Solid"
                BorderWidth="1px" Font-Names="Verdana" ForeColor="#990000" />
        </asp:CreateUserWizard>
    </div>
</asp:Content>

